package com.zhiyou100.demo.service;

import com.zhiyou100.demo.Mapper.UserMapper;
import com.zhiyou100.demo.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author: suzhinan
 * @CreateTime: 2019-11-19 09:35
 * @Description:
 */
@Service
public class UserInfoServiceImpl implements UserInfoService{

    @Resource
    private UserMapper mapper;

    @Override
    public UserInfo findByUsername(String username) {
        return mapper.findByUsername(username);
    }
}
